﻿using System;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择你要执行的服务：1、走  2、跑");
            string a = Console.ReadLine();
            Robot r;
            switch (a)
            {
                case "走":
                    r = new CCRobot("白兔", Robottype.CookRobot, Vagertabletype.走路);
                    r.Working();
                    break;
                case "跑":
                    r = new BBRobot("灰狼", Robottype.DeliveryRobot, 2);
                    r.Working();
                    break;
                default:
                    Console.WriteLine("请输入正确字符");
                    r = new CCRobot("白兔", Robottype.CookRobot, Vagertabletype.走路);
                    break;
            }
            Ider(r);
        }
        public static void Ider(Robot r)
        {

        }
    }
}
